package day5;

public class Drivertest {
    public static void main(String[] args) {
        Driver a=new Driver("老司机");
        Car b=new Car(5,144);
        Plane c=new Plane(36,10000);
        Tank d=new Tank(16,250);
        Tractor e=new Tractor(2,5);
        Steamship f=new Steamship(75,200,175);
        a.drive(b);
        a.drive(c);
        a.drive(d);
        a.drive(e);
        a.drive(f);
    }
}
